import { Trigger, TriggerProtocol } from 'orionos-eve-core';

export class TaskTrigger extends Trigger {
    public constructor(){
        super('task')
    }
    public navSwitch(from: string, to: string): void {
    }
    public trigger(protocol: TriggerProtocol): void | boolean {
        switch(protocol.eventId){
            case 1004:
                this._trigger('demo', protocol)
                break
        }
        return undefined
    }
}